package com.another.bidservice.dao.mapper;

import com.another.bidservice.entity.TCompany;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface CompanyDao{
    List<TCompany> getList(@Param("sql") String sql);
    int insertList(List<TCompany> entity);
    int deleteList(List<Integer> rowid);
    int updateList(List<TCompany> entity);
    int insertCompany(TCompany entity);
    int updateCompany(TCompany entity);
    int deleteCompany(TCompany entity);

    /**
     * 获取用户所属公司信息
     * @param company
     * @return
     */
    List<TCompany> getCompanysByUserId(TCompany company);
}



